package cn.smbms.service.type;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.smbms.dao.type.TypeMapper;
import cn.smbms.pojo.Type;

/**
 * 商品分类业务实现类
 * 
 * @author
 * 
 */
@Service
public class TypeServiceImpl implements TypeService {
	@Resource
	private TypeMapper typeMapper;

	public List<Type> getTypeList() throws Exception {
		return typeMapper.getTypeList();
	}

	@Override
	public Type getTypeById(Integer TypeId) throws Exception {

		return typeMapper.getTypeById(TypeId);
	}
}
